Certain faults should not be reflected if caused with priv=0
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Wed, 21 Dec 2005 14:36:03 +0000 (08:36 -0600)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Wed, 21 Dec 2005 14:36:03 +0000 (08:36 -0600)
Signed-off-by Kevin Tian <kevin.tian@intel.com>

xen/arch/ia64/xen/process.c

index 97425e40c61960c798188e7c93031a1c6cfb739d..3933801b30faad4447de32cccb96f73d62089da0 100644 (file)
@@ -715,9 +715,9 @@ ia64_handle_reflection (unsigned long ifa, struct pt_regs *regs, unsigned long i
        unsigned long check_lazy_cover = 0;
        unsigned long psr = regs->cr_ipsr;
 
-       if (!(psr & IA64_PSR_CPL)) {
-               printk("ia64_handle_reflection: reflecting with priv=0!!\n");
-       }
+       /* Following faults shouldn'g be seen from Xen itself */
+       if (!(psr & IA64_PSR_CPL)) BUG();
+
        switch(vector) {
            case 8:
                vector = IA64_DIRTY_BIT_VECTOR; break;